package service;

import com.root.health.bean.ExamInfo;
import com.root.health.mapper.ExamMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

@Service
public class ExamService {
    @Autowired

    public List<ExamInfo> examByid(long userid){

        return examMapper.examByid(userid);
    }//体检信息查询
    public ExamInfo examByExamId(long examId){
        return examMapper.examByExamId(examId);
    }
    //以体检信息id查询体检信息
    public void examDone(long examId){
        examMapper.examDone(examId);
    }
    //完成体检内容
    public void examDel(long examid){
        examMapper.examDel(examid);
    }
    //体检信息删除
    public void examUpd(String main, Timestamp examdate, String examsite, long examState,long examid){
        examMapper.examUpd(main,examdate,examsite,examState,examid);
    }//体检信息修改
    public Integer examCheck(String main, Timestamp examdate, String examsite, long userid){
        return examMapper.examCheck(main,examdate,examsite,userid);
    }//体检信息重复性校验
}
